package org.msfj.common.enums;

import java.io.Serializable;

/**
 * 输入框类型
 */
public enum InputType implements CodeValueEnum {

    TEXT(1, "单行文本输入框"),
    SELECT_ONE(2, "下拉选项"),
    CHECKBOX(3, "勾选选项"),
    TEXTAREA(4, "多行文本输入框"),
    DATE(5, "日期选择框"),
    DATETIME(6, "日期时间选择框");

    InputType(Integer code, String value) {
        this.code = code;
        this.value = value;
    }


    private Integer code;
    private String value;

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public Serializable getCode() {
        return code;
    }
}
